package com.itheima.health.service;

import com.itheima.health.pojo.Menu;
import com.itheima.health.pojo.Permission;
import com.itheima.health.pojo.Role;
import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Permission;
import java.util.List;

public interface PermissionService {
    List<Permission> findAll();

    Integer[] findPermissionIdsByRoleId(Integer id);
    /**
     * 分页查询
     * @param queryPageBean
     * @return
     */
   PageResult pageQuery(QueryPageBean queryPageBean);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    Permission findById(Integer id);


    /**
     * 编辑
     * @param permission
     */
    void edit(Permission permission);



    /**
     * 添加
     * @param permission
     */
    void add(Permission permission);


    /**
     * 根据id删除
     * @param id 数据id
     */
    void delete(Integer id);




}
